﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common;
using Microsoft.Xna.Framework;

namespace UIComponentSprite.Screen
{
    /// <summary>
    /// 游戏回合运行中按钮状态
    /// </summary>
   public class PauseBtnSprite:UserControlledSprite
    {
        public PauseBtnSprite()
       {
           this.ImgUrl = @"Images\views\screen\Pause";
           DrawPosition.Width = 35;
           DrawPosition.Height = 35;
       }
        public override void Draw(GameTime gameTime)
        {
            if (!Showing)
                return;
            SpriteBatch.Draw(this.Image, DrawPosition, Color.White);
        }

        public override void Update(GameTime gameTime)
        {
            if (!Showing)
                return;
            LoadPic();
            DrawPosition.X = 50;
            DrawPosition.Y = GameScreen.ViewportSize.Y - DrawPosition.Height;
        }
    }
}
